import java.util.Random;
import java.util.Scanner;
public class DickChappy {

	public static void main(String[] args){
		String in;
		int sel;
		int tot=0;
		Random rand=new Random();
		String[] clud=new String[20];
		Scanner input= new Scanner(System.in);
		System.out.println("WHAT NUMBER WOULD YOU HATE TO SEE IN AN ARRAY");
		in=input.next();
		for(int i=0;i<20;i++){
			sel=rand.nextInt(7);
			clud[i]=select(sel);
		}
		for (int i=0;i<20;i++){
			if(clud[i].equalsIgnoreCase(in)){
				tot= tot+1;
			}
		}
		System.out.println("THE COLOR WAS IN THE ARRAY "+tot+" times.");
		String ans;
		System.out.println("WOULD YOU LOVE TO RUN AGAIN?????");
		ans=input.next();
		if (ans.equalsIgnoreCase("yes")){
			main(args);
		}
		else{
			System.out.println("Goodday");
		}
		}
	static String select(int random){
		if(random==0){
			 	}
		else if (random==1){
			return "orange";
		}
		else if(random==2){
			return "yellow";
			}
		else if(random==3){
			return "green";
			}
		else if(random==4){
			return "blue";
			}
		else if(random==5){
			return "Indigo";
			}
		else if(random==6){
			return "violet";
			}
		else{
			return"white";
		}
		return null;
		}
	}
